package b2.scene.fight
{
	import b2.config.*;
	import b2.net.*;
	import b2.player.*;
	import b2.scene.*;
	import b2.widget.*;
	
	import flash.events.*;
	import flash.utils.*;
	
	import org.flixel.*;

	public class TileSprite extends FlxSprite
	{
		public function TileSprite(TileImage:Class, tileIndex:int)
		{
			super();
			loadGraphic(TileImage, true, true, PlayState.TILE_WIDTH);

			this.addAnimation("tile", [tileIndex]);
			this.play("tile");
		}
		
	}
}